﻿namespace SuperMarieApi.App.Controllers.Framework.Common
{
    using System.Collections.Generic;
    using System.Linq;

    public static class ArrayExtensions
    {
        public static bool In<T>(this T t, IEnumerable<T> enumerable)
        {
            return enumerable.Contains<T>(t);
        }

        public static bool In(this string str, params string[] args)
        {
            foreach (string str2 in args)
            {
                if (str2.Equals(str))
                {
                    return true;
                }
            }
            return false;
        }
    }


}
